clc
clear

r = 10;
L = 4;
M = 4;

x = zeros(1,r);
d = r-2;
for i = 0:r-1,
    x(i+1) = i-d;
end

x_min = min(x);

largest_neg_representable_number(r,L,M,x_min)